package com.winhxd.b2c.customer.service;

import com.winhxd.b2c.common.domain.PagedList;
import com.winhxd.b2c.common.domain.customer.condition.QueryPageConfigCondition;
import com.winhxd.b2c.common.domain.customer.model.CustomerPageConfig;

/**
 * @program: hxd-outlet-parent
 * @description: 页面配置service
 * @author: ChenYanqi
 * @create: 2019-01-11 19:31
 **/
public interface PageConfigService {

    /**
     * 保存页面配置
     *
     * @param customerPageConfig
     * @return
     */
    Boolean savePageConfig(CustomerPageConfig customerPageConfig);

    /**
     * 修改页面配置
     *
     * @param customerPageConfig
     * @return
     */
    Boolean modifyPageConfig(CustomerPageConfig customerPageConfig);

    /**
     * 发布页面
     *
     * @param customerPageConfig
     * @return
     */
    Boolean releasePageConfig(CustomerPageConfig customerPageConfig);

    /**
     * 删除页面配置
     *
     * @param id
     * @return
     */
    Boolean deletePageConfig(Long id);

    /**
     * 查询页面配置列表
     *
     * @param
     * @param homePage false 不查询默认主页（原译后台查询），true 查询默认主页
     * @return
     */
    PagedList<CustomerPageConfig> selectByStoreId(QueryPageConfigCondition configCondition, Boolean homePage);

    Boolean setHomePage(CustomerPageConfig customerPageConfig);

    CustomerPageConfig selectPageConfigById(Long id);

    Boolean updateHomePage(CustomerPageConfig storePageConfig);

    CustomerPageConfig selectHomePageByStoreId(Long storeId);

}
